<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../css/mui.css" rel="stylesheet" />
	</head>

	<body>
		<div class="mui-content">
		
			<ul class="mui-table-view mui-row">
			    <li class="mui-table-view-cell">
			        <a id="link_add_user" class="mui-navigate-right">
						<span class="mui-icon iconfont icon-yuyue"></span>
						添加新用户
					</a>
			    </li>
				<li class="mui-table-view-cell">
				    <a id="link_see_user" class="mui-navigate-right">
						<span class="mui-icon iconfont icon-tianxie"></span>
						查看已有用户
					</a>
				</li>
			</ul>
			
			<br />
			
			<ul class="mui-table-view">
			
				<li class="mui-table-view-cell mui-media" style="text-align: center;">
					<a id="link_logout" href="javascript:;">
						<div class="mui-media-body">
							退出登录
						</div>
					</a>
				</li>
			
			</ul>
		</div>
		
		<script src="../../js/mui.js"></script>
		<script src="../../js/app.js"></script>
		<script type="text/javascript">
			mui.init()
			
			mui.plusReady(function () {
				// 页面跳转 添加新用户
				document.getElementById("link_add_user").addEventListener("tap", function() {
					mui.openWindow({
						url: "addNewUser.html", 
						id: "addNewUser.html",
						createNew: true
					});
				});
				
			    // 页面跳转 查看已有用户
			    document.getElementById("link_see_user").addEventListener("tap", function() {
			    	mui.openWindow({
			    		url: "userInfo.html", 
			    		id: "userInfo.html",
			    		createNew: true
			    	});
			    });
				
				// 用户退出登录
				var link_logout = document.getElementById("link_logout");
				link_logout.addEventListener("tap", function() {
					app.userLogout();
					mui.openWindow({
						url: "../../login.html",
						id: "login.html"
					});
				});
			})
		</script>
	</body>

</html>
